package cn.fan.study.eight.message;

import lombok.Data;

/**
 * 消息数据定义(心跳  握手  应答  都可以使用不需要再单独去定义了)
 *
 * @author fgy
 * @version 1.0
 * @date 2021/8/9 14:36
 */
//@Data
public final class NettyMessage {
    private Header header;  //消息头

    private Object body;   //消息体

    public final Header getHeader() {
        return header;
    }

    public final void setHeader(Header header) {
        this.header = header;
    }

    public final Object getBody() {
        return body;
    }

    public final void setBody(Object body) {
        this.body = body;
    }

    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "NettyMessage [header=" + header + "]";
    }
}
